//package com.yiwei.zhh.impl;
//
//import android.content.Context;
//
//import com.yiwei.zhh.constant.Const;
//import com.yiwei.zhh.http.CallBackListener;
//import com.yiwei.zhh.http.InterfaceServer;
//import com.yiwei.zhh.interfaces.DealTypeInfo;
//import com.yiwei.zhh.http.InfoCallBack;
//import com.yiwei.zhh.http.ResponseListener;
//import com.yiwei.zhh.model.DealTypeModel;
//import com.yiwei.zhh.model.RequestModel;
//import com.yiwei.zhh.model.ResponseModel;
//import com.yiwei.zhh.util.JsonUtil;
//
//import java.util.HashMap;
//
///**
// * 交易类型
// */
//public class DealTypeInfoImpl implements DealTypeInfo {
//
//    public void getDealTypeInfo(Context paramContext, final InfoCallBack callBack) {
//        RequestModel model = new RequestModel(new HashMap());
//        InterfaceServer.getInstance(paramContext.getApplicationContext()).requestInterface(Const.DEALTYPE, Const.RequestMethod.GET, model, Const.DEFAULT_TIMEOUT, new CallBackListener<DealTypeModel>(DealTypeModel.class,callBack));
////                new ResponseListener() {
////            public void onFinishInMainThread(Object paramAnonymousObject) {
////            }
////
////            public void onStartInMainThread(Object paramAnonymousObject) {
////                callBack.onFailure(paramAnonymousObject.toString());
////            }
////
////            @Override
////            public void onSuccessInMainThread(int paramAnonymousInt, String paramAnonymousString, Object result) {
////                try {
////                    DealTypeModel model = (DealTypeModel) result;
////                    callBack.onSuccess(model);
////                    //返回数据接口
////                } catch (Exception e) {
////                    e.printStackTrace();
////                }
////            }
////
////            @Override
////            public Object onSuccessInRequestThread(int statusCode, String content) {
////                try {
////                    return JsonUtil.<DealTypeModel>fromJson(content, DealTypeModel.class);
////                } catch (Exception e) {
////                    return null;
////                }
////            }
////        });
//    }
//}
